package com.richfit.cuba.modular.lsms.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

/**
 * <p>
 * 
 * </p>
 *
 * @author Alan
 * @since 2018-11-14
 */
@TableName("safe_encrypted")
public class SafeEncrypted extends Model<SafeEncrypted> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId("ID")
    private String id;
    /**
     * 创建时间
     */
    @TableField("CREATE_DATE")
    private Date createDate;
    /**
     * 更新时间
     */
    @TableField("UPDATE_DATE")
    private Date updateDate;
    /**
     * 加密密文
     */
    @TableField("ENCRYPTED_FIELD")
    private String encryptedField;
    /**
     * 加密字段
     */
    @TableField("ENCRYPTED_ATTRIBUTE")
    private String encryptedAttribute;
    /**
     ** private key
     */
    @TableField("ENCRYPTED_CERTIFICATE")
    private String encryptedCertificate;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public String getEncryptedField() {
        return encryptedField;
    }

    public void setEncryptedField(String encryptedField) {
        this.encryptedField = encryptedField;
    }

    public String getEncryptedAttribute() {
        return encryptedAttribute;
    }

    public void setEncryptedAttribute(String encryptedAttribute) {
        this.encryptedAttribute = encryptedAttribute;
    }

    public String getEncryptedCertificate() {
        return encryptedCertificate;
    }

    public void setEncryptedCertificate(String encryptedCertificate) {
        this.encryptedCertificate = encryptedCertificate;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "SafeEncrypted{" +
        ", id=" + id +
        ", createDate=" + createDate +
        ", updateDate=" + updateDate +
        ", encryptedField=" + encryptedField +
        ", encryptedAttribute=" + encryptedAttribute +
        ", encryptedCertificate=" + encryptedCertificate +
        "}";
    }
}
